<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY copy "&#169;">
  <!ENTITY nbsp "&#160;">
  <!ENTITY laquo "&#171;">
  <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

  <xsl:output encoding="UTF-8"
              method="xml"
              omit-xml-declaration="yes"
              indent="no"
              doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
              doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>

  <xsl:variable name="Root" select="/page/settings/url" />
  <xsl:variable name="Files" select="/page/settings/files_url" />
  <xsl:variable name="Images" select="/page/settings/images_url" />
  <xsl:variable name="Settings" select="/page/settings" />
  <xsl:variable name="Controller" select="/page/settings/controller" />
  <xsl:variable name="Action" select="/page/settings/action" />
  <xsl:variable name="This" select="/page/settings/this" />
  <xsl:variable name="Main" select="/page/content/Main" />
  <xsl:variable name="User" select="/page/content/auth-info" />
  <xsl:variable name="Content" select="/page/content" />
  <xsl:variable name="Cats" select="/page/content/Cats" />
  <xsl:variable name="Cat" select="/page/content/@cat" />
  <xsl:variable name="Form" select="/page/content/Main/form" />
  <xsl:variable name="Static" select="/page/content/static" />


  <xsl:template match="/">
    <xsl:apply-templates />
  </xsl:template>


  <xsl:template match="page">
    <html>
      <head>
       
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>
           404
            </title>        
                <link href="{$Root}/css/default.css" rel="stylesheet" type="text/css" />

      </head>

  <body class="msg404">
     <div class="error"> <h1>404</h1>
 <div class="msgerror">
<p>Неправильно набран адрес, или такой страницы не существует.</p></div>

<p>Вернуться <a href="/">на  главную</a>.</p>
</div>
      </body>
      
    </html>
  </xsl:template>



</xsl:stylesheet>